package com.jdyfy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("roles") //数据库中对应的表名
public class Role implements Serializable {

    //确保反序列化时能正确恢复对象的状态
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type =  AUTO)
    private Long roleId; //角色ID

    private String roleName; //角色名称

    private String roleDescription; //角色描述

    private Integer status; //角色状态

}
